package com.tuo51.manager.vo;

import com.tuo51.core.domain.org.Organization;
import com.tuo51.foudation.utils.CopyUtils;
import lombok.Data;

import java.util.Date;

@Data

public class OrganizationVO {

    private String id;

    private String name;

    private String creatorId;

    private String adminId;

    private Boolean bizOrg = false;

    private String typeId;

    private String code;

    private Integer sequence = 1;

    private Boolean test = false;

    //机构地址
    private String address;

    private String pcaCode;

    private String pcaCodeDesc;

    private String contactNumber;

    private String logo;

    //服务终止时间
    private Date expireTime;

    private Date totalDuration;

    private Integer vipLevel;

    //可创建的报告数量
    private Integer restCount;

    //子账号
    private Integer staffCount = 1;

    private Integer staffQuota = 1;

    private String sourceAppId;


    public static OrganizationVO of(Organization template){
        OrganizationVO ret = new OrganizationVO();
        CopyUtils.copyProperties(template, ret);
        return ret;
    }
}
